package com.xuecheng.search.dto;

import com.xuecheng.base.model.PageResult;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**public class PageResult<T> implements Serializable {//回复的
        private List<T> items;
 //总记录数, todo courseBasePage.getTotal()返回的类型是long
        private long counts;
 //当前页码
        private long page;
 //每页记录数
        private long pageSize;

 public PageResult(List<T> items, long counts, long page, long pageSize) {
        this.items = items;
        this.counts = counts;
        this.page = page;
        this.pageSize = pageSize;
 }}
 */
@Data
@ToString
public class SearchPageResultDto<T> extends PageResult {//搜索分页结果

    //大分类列表
    List<String> mtList;
    //小分类列表
    List<String> stList;

    public SearchPageResultDto(List<T> items, long counts, long page, long pageSize) {
        super(items, counts, page, pageSize);
    }

}
